#include "./app.h"
#include <QFile>
#include "./rt/work.h"

static void set_app_style(App *app) {
    QFile file(":/app.qss");
    file.open(QIODevice::ReadOnly);
    QString s = QString::fromUtf8(file.readAll());
    app->setStyleSheet(s);
}

App::App(int argc, char *argv[]) : TimeApp(argc, argv) {
    set_app_style(this);
    rt::init();
}

App::~App() {
    rt::exit();
}









